﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class AnimClipInfoCtr
{
    public Dictionary<string, AnimClipInfo> clipInfoMap = new Dictionary<string, AnimClipInfo>();

    public void AddAnimClip(string animName, AnimationClip clip)
    {
        if (!clipInfoMap.ContainsKey(animName))
        {
            clipInfoMap[animName] = new AnimClipInfo(clip);
        }
    }

    public AnimClipInfo GetOneAnimClipFrames(string animName)
    {
        if (clipInfoMap.ContainsKey(animName))
        {
            return clipInfoMap[animName];
        }
        return null;
    }
}
